#ifndef __CONNECTIONMGR_H__
#define __CONNECTIONMGR_H__

#include "connection.h"

#include <unordered_map>

class ConnectionMgr
{
public:

    ConnectionMgr(const ConnectionMgr& other) = delete;
    ConnectionMgr& operator=(const ConnectionMgr& other) = delete;

    void add_connection(Connection::ptr conptr);
    void rmv_connection(std::string uuid);

	static ConnectionMgr& get_instance();

private:
	ConnectionMgr() = default;
	~ConnectionMgr();

private:
    std::unordered_map<std::string, Connection::ptr> _connections;
};


#endif